using System;
using System.Windows.Forms;
using nDeveloper.BO.Base.Domain;
using nDeveloper.Data;
using System.Collections;

namespace nDeveloper.UI.Windows.IDE
{
    public partial class FormTeste : Form
    {
        public FormTeste()
        {
            InitializeComponent();

            nDeveloper.Data.BaseDataAccess db = new nDeveloper.Data.BaseDataAccess(DataBaseConfig.GetConnectionString(), Providers.MySql);
            dgvTeste.DataSource = db.GetSchema();
        }

        private void FormTeste_Load(object sender, EventArgs e)
        {
            /*
            con.Open();

            // Indexes, Table_Constraints
            try
            {
                dgvTeste.DataSource = con.GetOleDbSchemaTable(OleDbSchemaGuid.Columns, new object[] { null, null, "tblAbono" });
                //dgvTeste.DataSource = con.GetOleDbSchemaTable(OleDbSchemaGuid.Indexes, new object[] { null, null, "tblContratos" });
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            
            con.Close();*/
        }

        private void FormTeste_Click(object sender, EventArgs e)
        {

        }
    }
}